const urlBase = "https://route.showapi.com"
 const http = (obj) => {
  return new Promise(
    (resolve, reject) => {
      wx.request({
        "url": urlBase + obj.url,
        "method": obj.method || "get",
        data:obj.data||{},
        "header": obj.header || {
          "content-type": "application/x-www-form-urlencoded"
        },
        success:resolve,
        fail:reject
      })
    }
  )
}
export default http